const path = require('path');
import MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')	//CommonJS语法规范

module.exports = {
    loaders: [
        {
            test: /\.js$/,
            exclude: /(node_modules|bower_components)/,
            loader: 'babel',
            query: {
                presets: ['es2015']
            }
        }
    ],
    plugins: [new MonacoWebpackPlugin()],
};
